package io.github.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName("call_logs")
@ColumnWidth(20)
public class SysCallogsEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private Long id;

    @ExcelProperty("主叫号码")
    @TableField
    private String caller;

    @ExcelProperty("被叫号码")
    @TableField
    private String callee;

    @TableField
    @ExcelIgnore
    private String displayCaller;

    @TableField
    @ExcelIgnore
    private String displayCallee;

    @TableField
    @ExcelIgnore
    private String sessionid;
    /**
     * 通话时长
     */
    @TableField
    @ExcelProperty("通话时长")
    private String duration;

    @TableField
    @ExcelIgnore
    private String recordFileUrl;

    @TableField
    @ExcelProperty("开始时间")
    private String callerStartTime;

    @TableField
    @ExcelIgnore
    private String callerRingTime;

    @TableField
    @ExcelIgnore
    private String callerAnswerTime;

    @TableField
    @ExcelIgnore
    private String calleeStartTime;

    @TableField
    @ExcelIgnore
    private String calleeRingTime;

    @TableField
    @ExcelIgnore
    private String calleeAnswerTime;

    @TableField
    @ExcelProperty("挂机时间")
    private String hangupTime;

    @TableField
    @ExcelProperty("挂机原因")
    private String hangupReason;

    @TableField
    @ExcelIgnore
    private String reqid;

    @TableField
    @ExcelIgnore
    private Integer areaid;

    @TableField
    @ExcelIgnore
    private String fromName;

    @TableField
    @ExcelIgnore
    private String toName;

    //被叫归属
    @TableField
    private String unionName;

    //主叫归属
    @TableField
    private String depName;

    //被叫转换号码
    @TableField
    private String unionNumber;

}
